package com.hsc.yalebao.tabIndex;

import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.Resources;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.hsc.yalebao.base.BaseActivity;
import com.hsc.yalebao.base.CustomApplication;

public class RoomInfoActivity extends BaseActivity
  implements View.OnClickListener
{
  private String TAG = "-RoomInfoActivity-";
  private View contentView;
  private Context context;
  private ImageView img_guanliyuan;
  private ImageView img_qunchengyuan;
  private ImageView iv_title_right;
  private LinearLayout lin_guanliyuan;
  private LinearLayout lin_qunchengyuan;
  View.OnClickListener onClickListener = new View.OnClickListener()
  {
    public void onClick(View paramAnonymousView)
    {
      switch (paramAnonymousView.getId())
      {
      case 2131099700:
      case 2131099701:
      case 2131099702:
      case 2131099703:
      case 2131099704:
      default:
        return;
      case 2131099699:
      }
      CustomApplication.app.finishActivity(RoomInfoActivity.this);
    }
  };
  private Resources resources;
  private TextView tv_guanliyuan;
  private TextView tv_qunchengyuan;
  private View view_title;

  private void init()
  {
    this.lin_qunchengyuan = ((LinearLayout)this.contentView.findViewById(2131099932));
    this.lin_guanliyuan = ((LinearLayout)this.contentView.findViewById(2131099935));
    this.lin_qunchengyuan.setOnClickListener(this);
    this.lin_guanliyuan.setOnClickListener(this);
    this.img_qunchengyuan = ((ImageView)this.contentView.findViewById(2131099933));
    this.img_guanliyuan = ((ImageView)this.contentView.findViewById(2131099936));
    this.tv_qunchengyuan = ((TextView)this.contentView.findViewById(2131099934));
    this.tv_guanliyuan = ((TextView)this.contentView.findViewById(2131099937));
    setTitle(8, 0, 2130837809, "房间信息", 0, 8, 8, 0, true);
  }

  public void onClick(View paramView)
  {
    switch (paramView.getId())
    {
    case 2131099933:
    case 2131099934:
    default:
      return;
    case 2131099932:
      this.lin_qunchengyuan.setBackgroundDrawable(this.resources.getDrawable(2130837838));
      this.lin_guanliyuan.setBackgroundDrawable(this.resources.getDrawable(2130837835));
      this.img_qunchengyuan.setImageDrawable(this.resources.getDrawable(2130837833));
      this.img_guanliyuan.setImageDrawable(this.resources.getDrawable(2130837832));
      this.tv_qunchengyuan.setTextColor(this.resources.getColor(2131165370));
      this.tv_guanliyuan.setTextColor(this.resources.getColor(2131165338));
      return;
    case 2131099935:
    }
    this.lin_qunchengyuan.setBackgroundDrawable(this.resources.getDrawable(2130837837));
    this.lin_guanliyuan.setBackgroundDrawable(this.resources.getDrawable(2130837836));
    this.img_qunchengyuan.setImageDrawable(this.resources.getDrawable(2130837834));
    this.img_guanliyuan.setImageDrawable(this.resources.getDrawable(2130837831));
    this.tv_qunchengyuan.setTextColor(this.resources.getColor(2131165338));
    this.tv_guanliyuan.setTextColor(this.resources.getColor(2131165370));
  }

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    this.context = this;
    this.contentView = LayoutInflater.from(this.context).inflate(2130903078, null);
    setContentView(this.contentView);
    CustomApplication.app.addActivity(this);
    this.resources = this.context.getResources();
    init();
  }

  @SuppressLint({"NewApi"})
  public void setTitle(int paramInt1, int paramInt2, int paramInt3, String paramString, int paramInt4, int paramInt5, int paramInt6, int paramInt7, boolean paramBoolean)
  {
    View localView = findViewById(2131099716);
    if (paramBoolean)
      localView.setVisibility(0);
    while (true)
    {
      ((TextView)localView.findViewById(2131099701)).setText(paramString);
      ((TextView)localView.findViewById(2131099700)).setVisibility(paramInt1);
      ImageView localImageView = (ImageView)localView.findViewById(2131099699);
      localImageView.setVisibility(paramInt2);
      localImageView.setOnClickListener(this.onClickListener);
      localImageView.setImageResource(paramInt3);
      TextView localTextView = (TextView)localView.findViewById(2131099702);
      localTextView.setVisibility(paramInt5);
      localTextView.setOnClickListener(this.onClickListener);
      this.iv_title_right = ((ImageView)localView.findViewById(2131099704));
      this.iv_title_right.setVisibility(paramInt6);
      this.iv_title_right.setOnClickListener(this.onClickListener);
      this.iv_title_right.setImageResource(paramInt7);
      return;
      localView.setVisibility(8);
    }
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.hsc.yalebao.tabIndex.RoomInfoActivity
 * JD-Core Version:    0.6.2
 */